package com.hsy.bibc.common;

/**
 * Created by hsy on 2016/3/23.
 */
public class Consts {

    public static final boolean DEBUG = true;

    public static final String TOKEN = "token";
    public static final String KEY_TOKEN = "key_token";

    public static final String PROCESS_NAME_BIB = "com.hsy.bibc";
    public static final String UID = "uid";

    public static final String ERROR = "error";
    public static final String MSG = "msg";
    public static final String RESULT = "result";

    public static final int TYPE_CODE_ERROR = 0;
    public static final int TYPE_NETWORK_ERROR = 1;

    public static  String API_POST_SEND_SMS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Auth/sendSms";

    public static  String API_POST_REG_SMS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Auth/regSms";
    public static  String API_POST_REG_STEP = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Auth/regStep";
    public static  String API_POST_REG = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Auth/reg";

    public static  String API_POST_LOGIN = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Auth/login";
    public static  String API_POST_FORGET_PASS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Auth/forgetPass";

    public static  String API_GET_HD_HOTS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Hd/hots.html";
    public static  String API_GET_WYS_HOTS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wys/hots.html";
    public static  String API_GET_WBS_HOTS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wbs/hots.html";
    public static  String API_GET_DISCOVERY_ACTIVITY_CATS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Hd/cats.html";
    public static  String API_GET_DISCOVERY_SERVICE_WYS_CATS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wys/cats.html";
    public static  String API_GET_DISCOVERY_SERVICE_WBS_CATS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wbs/cats.html";
    public static  String API_GET_DISCOVERY_ACTIVITY_LISTS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Hd/lists.html";
    public static  String API_GET_DISCOVERY_SERVICE_WYS_LISTS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wys/lists.html";
    public static  String API_GET_DISCOVERY_SERVICE_WBS_LISTS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wbs/lists.html";

    public static  String API_GET_QZ_LISTS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Quan/lists.html";
    public static  String API_POST_QZ_COLLECT = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Quan/collect.html";

    public static  String API_GET_BEFORE_PUBLISH_ACT = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Hd/beforePub.html";
    public static  String API_GET_BEFORE_PUBLISH_WYS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wys/beforePub.html";
    public static  String API_GET_BEFORE_PUBLISH_WBS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wbs/beforePub.html";

    public static  String API_COMMIT_PUB_ACT = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Hd/pub.html";
    public static  String API_COMMIT_PUB_WYS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wys/pub.html";
    public static  String API_COMMIT_PUB_WBS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wbs/pub.html";
    public static  String API_COMMIT_PUB_QZ = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Quan/pub.html";


    public static  String API_GET_NEWS_ZX_LIST = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Zx/lists";
    public static  String API_GET_NEWS_ZX_HOTS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Zx/hots";
    public static  String API_GET_NEWS_ZX_DETAIL = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Zx/detail";

    public static  String API_GET_MY_INFO = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Shop/my";

    public static  String API_GET_MY_CHANGE_NAME = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Shop/chgNickname";
    public static  String API_GET_MY_CHANGE_SEX = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "User/chgSex";
    public static  String API_POST_MY_CHANGE_PASSWORD = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "User/chgPassword";
    public static  String API_POST_MY_CHANGE_AVATAR = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Shop/chgAvatar";


    public static  String API_GET_MY_WYS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "My/myWys";
    public static  String API_GET_MY_WEBS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "My/myWbs";
    public static  String API_GET_MY_HD = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "My/myHd";
    public static  String API_GET_MY_JOIN_HD = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "My/myJoinHd";
    public static  String API_GET_MY_QUAN = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "My/myQuan";

    public static  String API_GET_MY_COLLECT_HD = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Shop/myOrder";
    public static  String API_GET_MY_COLLECT_WYS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "My/myCollectWys";
    public static  String API_GET_MY_COLLECT_WBS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "My/myCollectWbs";


    public static  String API_GET_MY_DEL_WYS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "My/delWys";
    public static  String API_GET_MY_DEL_WBS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "My/delWbs";
    public static  String API_GET_MY_DEL_HD = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "My/delHd";
    public static  String API_GET_MY_DEL_QUAN = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "My/delQuan";

    public static  String API_UPLOAD_IMAGES = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Auth/imgsUpload";
    public static  String API_UPLOAD_IMAGE = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Public/imgUpload";

    public static  String API_GET_MY_HD_DETAIL = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Hd/detail";
    public static  String API_GET_MY_WBS_DETAIL = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wbs/detail";
    public static  String API_GET_MY_WYS_DETAIL = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wys/detail";

    public static  String API_GET_HD_COMMENTS_LISTS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Hd/comments";
    public static  String API_GET_WYS_COMMENTS_LISTS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wys/comments";
    public static  String API_GET_WBS_COMMENTS_LISTS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wbs/comments";
    public static  String API_GET_QUAN_COMMENTS_LISTS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Quan/comments";

    public static  String API_ACT_REPLY = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Hd/reply";
    public static  String API_ACT_COMMENT = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Hd/sendComment";
    public static  String API_WYS_REPLY = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wys/reply";
    public static  String API_WYS_COMMENT = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wys/sendComment";
    public static  String API_WBS_REPLY = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wbs/reply";
    public static  String API_WBS_COMMENT = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wbs/sendComment";
    public static  String API_QUAN_REPLY = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Quan/reply";
    public static  String API_QUAN_COMMENT = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Quan/sendComment";

    public static  String API_ACT_UNLIKE = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Hd/unlike";
    public static  String API_WYS_UNLIKE = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wys/unlike";
    public static  String API_WBS_UNLIKE = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wbs/unlike";

    public static  String API_WBS_COLLECT = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wbs/collect";
    public static  String API_WYS_COLLECT = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Wys/collect";
    public static  String API_HD_COLLECT = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Hd/collect";

    public static  String API_GET_SEARCH = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Search/search";
    public static  String API_POST_BAOMING = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Hd/baoming";

    public static  String API_GET_CONTACTS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "My/friends";

    public static final String TO_SHOW_FRAGMENT = "TO_SHOW_FRAGMENT";
    public static final String TO_SHOW_SUB_FRAGMENT = "TO_SHOW_SUB_FRAGMENT";

    public static final int REQ_SELECT_IMAGES = 0x8001;
    public static final int REQ_TAKE_PICTURES = 0x8002;

    public static final String CACHE_DIR_PUB_ACT = "pub_act";
    public static final String PUB_QZ = "PUB_QZ";
    public static final String IMAGE_CACHE_DIR_NAME = "image_cache_dir";


    public static final int BUSEVENT_COMMAND_UPDATE_SEARCH_ACTS = 0;
    public static final int BUSEVENT_COMMAND_UPDATE_SEARCH_WYS = 1;
    public static final int BUSEVENT_COMMAND_UPDATE_SEARCH_WBS = 2;
    public static final String CONTACTS_VERSION = "CONTACTS_VERSION";
    public static final String KEY_IM_TOKEN = "KEY_IM_TOKEN";
    public static final String KEY_IM_ID = "KEY_IM_ID";
    public static final String KEY_USER_ID = "KEY_USER_ID";
    public static final String KEY_USER_NAME = "KEY_USER_NAME";
    public static final String KEY_USER_PHONE = "KEY_USER_PHONE";
    public static final String KEY_USER_TEL = "KEY_USER_TEL";
    public static final String KEY_USER_FP = "KEY_USER_FP";
    public static final String KEY_USER_LOGO = "KEY_USER_LOGO";
    public static final String KEY_USER_ADDRESS = "KEY_USER_ADDRESS";
    public static final String KEY_USER_MAP = "KEY_USER_MAP";
    public static final String KEY_USER_XF = "KEY_USER_XF";
    public static final String KEY_USER_DH = "KEY_USER_DH";


    public static final class Actions {
        public static final String ACTION_ON_RONG_MESSAGE_RECEIVED = "ACTION_ON_RONG_MESSAGE_RECEIVED";
        public static final String ACTION_ON_CIRCLE_MESSAGE_RECEIVED = "ACTION_ON_CIRCLE_MESSAGE_RECEIVED";
    }

    ;

    public static class Keys {
        public static final String KEY_CIRCLE_UNREAD_NUM = "KEY_CIRCLE_UNREAD_NUM";
        public static final String FROM_WHERE = "FROM_WHERE";
    }

    public static class RequestCodes {
        public static final int GET_LOCATION = 0;
    }

    public static class Apis {
        public static  String POST_AUTH_LOGIN = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Auth/login";

        public static  String GET_QUANZI_DONGTAI = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Quan/dongtai";
        public static  String GET_CIRCLE_NEWS_NUM = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Quan/newMsg";
        public static  String GET_RECENT_RECORDS = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Shop/home.html";
        public static  String GET_SHOP_MY_WASTE = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Shop/myWasteStock";
        public static  String GET_SHOP_MY_SHOP = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Shop/myGoodsStock";
        public static  String POST_SCAN_FP = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Scan/fpQrcode";
        public static  String POST_FP_MAKER_ORDER = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Fp/makeOrder";

        public static  String GET_ORDER_DETAIL_FP = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Fp/detail.html";
        public static  String GET_ORDER_DETAIL_DH = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Dh/detail.html";
        public static  String GET_ORDER_DETAIL_SY = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Sy/detail.html";

        public static  String GET_CONFIRM_FP = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Fp/confirmOrder";
        public static  String GET_CONFIRM_DH = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Dh/confirmOrder";
        public static  String GET_CONFIRM_SY = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Sy/confirmOrder";
        public static  String POST_CONFIRM_DH = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Dh/confirmDh";

        public static  String  GET_USER_INFO = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Scan/xfQrcode";
        public static  String POST_COMMIT_SY = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Sy/doSy";
        public static  String POST_COMMIT_DH = (Config.isOnline ? Config.API_SERVER_ONLINE : Config.API_SERVER) + "Dh/duihuan";
    }

    public static class Types {
        public static class Comments {
            public static final String HD = "HD";
            public static final String WYS = "WYS";
            public static final String WBS = "WBS";
            public static final String QUAN = "QUAN";
        }
    }

}
